package com.sheepone.util.structure.node;

/**
 * @author Miss.杨
 * @description 双向节点
 * @since 2024/3/5 - 14:57
 */
public class BidirectionalNode<T> extends UnidirectionalNode<T> {
    private UnidirectionalNode<T> prev;
    public BidirectionalNode() {
        super();
    }
    public BidirectionalNode(T data) {
        super(data);
    }

    public UnidirectionalNode<T> getPrev() {
        return prev;
    }

    public void setPrev(UnidirectionalNode<T> prev) {
        this.prev = prev;
    }
}
